const express = require('express');
const path = require('path');//A utility module that deals with paths.
const app = express();//express contains a bunch of methods;
//1.起别名(如果需要)(暂时不好使)
//app.use('/9.Static Folder/public',express.static(path.join(__dirname,'9.Static Folder/UTSHelps_Student')));//The alias(别名) for our 9.Static Folder folder

//2.不知道为什么，不加这句话，无法加载css和js等文件
app.use('/',express.static(path.join(__dirname,'9.Static Folder/UTSHelps_Student')));//The alias(别名) for our 9.Static Folder folder

//3.加载页面
app.get('/',(req,res)=>{
    res.sendFile(path.join(__dirname,'9.Static Folder/UTSHelps_Student','UtsHelpsHome.html'));
});

app.listen(3000);